package com.hyt.it.ogt.ykcj.feign.kw;

import org.springframework.stereotype.Component;

import com.hyt.it.ogt.ykcj.common.exception.CustomException;
import com.hyt.it.ogt.ykcj.feign.model.CandidateAnswersResultEntity;
import com.hyt.it.ogt.ykcj.feign.model.ResultEntity;

import lombok.extern.slf4j.Slf4j;

/**
 * 
 * feign客户端熔断器
 *
 */
@Component
@Slf4j
public class ExamClientHystrix implements ExamClient {

	@Override
	public ResultEntity getExamInfo(String examId) {
		log.error("调用考试： "+examId+" 。失败。。。");
		throw new CustomException("无法获取同步获取考试信息！");
	}

	@Override
	public CandidateAnswersResultEntity queryCandidateAnswers(String examId, String ExamineeId) {
		log.error("调用考生： " + ExamineeId + " 。考试：" + examId + "失败。。。");
		throw new CustomException("无法获取同步获取考生的考试试卷信息！");
	}



}
